package com.yn.iotxiao.sql.mapper;

import com.yn.iotxiao.sql.entity.User.TeacherInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface BaseMapper<T> {

    int insert(T t);
    int batchInsert(List<T> list);
    int deleteWithKey(Object key);

    T getWithKey(Object key);

    List<T> getListPage(String searchKey, int page, int pageSize);
    int getTotal(String searchKey);

    List<T> getList(String searchKey);
}
